<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>




<img style="margin-left: 150px;" src="/${initParam.context_root }/img/event.jpg"></img>

<br>
<br>
<br>

<h3 align="center">이벤트상품목록</h3>
<table class="table table-bordered" align="center">
	<tr align="center">
		<td></td>
		<td class="alert alert-success" width="60">컴퓨터ID</td>
		<td class="alert alert-success" width="90">이름</td>
		<td class="alert alert-success" width="90">가격</td>
		<td class="alert alert-success" width="50">수량</td>
		<td class="alert alert-success" width="635">상세설명</td>
	</tr>
<c:forEach items="${requestScope.event_list}" var="event">
	<tr align="center">
		<td width="90" height="90">
		<c:choose>
			<c:when test="${event.FILENAME!=null }">
				<img src="/droowa/product-img/${event.FILENAME}" style="width:90px; height=90px;">
			</c:when>
			<c:when test="${event.FILENAME==null}">
				<img src="/droowa/product-img/No_image.jpg" style="width:90px; height=90px;">
			</c:when>	
		</c:choose>
		</td>
		<td width="60">${event.COMPLETEID}</td>
		<td width="90">${event.COMPLETENAME}</td>
		<td width="90">${event.COMPLETEPRICE}</td>
		<td width="50">${event.COMPLETEQUANTITY}</td>
		<td width="635">
		${event.MAINBOARDNAME} / ${event.CPUNAME} / ${event.COOLERNAME} / ${event.MEMORYNAME} / ${event.GRAPHICNAME} /
		${event.HDDNAME} / ${event.SSDNAME} / ${event.DVDNAME} / ${event.SOUNDNAME} / ${event.POWERNAME} /
		${event.CASENAME} / ${event.OSNAME}
		</td>
	</tr>
</c:forEach>
</table>